Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
@aria-ui/listbox
Advanced tools
A custom Listbox element.
new ListboxElement(): ListboxElement
Property | Type | Description |
---|---|---|
autoFocus | boolean | Whether the listbox should automatically set the focus to the first item when the listbox is mounted or when the query changes. Default false |
filter | null | ItemFilter | The filter function to determine if an item should be shown in the listbox. By default, a simple case-insensitive substring match is used. You can provide a custom filter function to match against a more complex pattern. You can also pass null to disable filtering and allow all items to be shown. Default defaultItemFilter |
onKeydownHandlerAdd | null | (handler : (event : KeyboardEvent ) => void ) => VoidFunction | By default, the Listbox element will listen for keydown events. However, you can pass onKeydownHandlerAdd to override the default behavior. onKeydownHandlerAdd receives a keydown handler when the Listbox element is mounted, and returns a function that will be called when the Listbox element is unmounted. Default null |
onValueChange | null | (value : string ) => void | Event handler called when the value changes. Default null |
query | string | The query string to filter the listbox items. Default "" |
selectionMode | "multiple" | "single" | Listbox selection mode (Currently only single selection mode is implemented) Default "single" |
value | string | The selected value. Default "" |
A custom ListboxEmpty element.
new ListboxEmptyElement(): ListboxEmptyElement
A custom ListboxItem element.
new ListboxItemElement(): ListboxItemElement
Property | Type | Description |
---|---|---|
onSelect | null | VoidFunction | The function to call when the item is selected. Default null |
value | string | The value of the item. Every item must have a unique value in the parent list. Default "" |
Property | Type | Description |
---|---|---|
onSelect | null | VoidFunction | The function to call when the item is selected. Default null |
value | string | The value of the item. Every item must have a unique value in the parent list. Default "" |
FAQs
## ListboxEvents #
The npm package @aria-ui/listbox receives a total of 2,594 weekly downloads. As such, @aria-ui/listbox popularity was classified as popular.
We found that @aria-ui/listbox demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.